<!-- 判决书详情页 -->
<template>
	<view class="max-box">
		<view class="title">{{caseData.title}}</view>
		<view class="imgs">
			<view class="img" v-for="(url, index) in caseData.content_url" :key="index" @click="previewImage(caseData.content_url, index)">
				<u-image width="100%" mode="widthFix" :src="url"></u-image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				caseData: {},
			};
		},
		onLoad() {
			this.caseData = this.vuex_caseData
			console.log(this.caseData);
		},
		methods: {
			previewImage(list, index) {
				uni.previewImage({
					current: index,
					urls: list
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.max-box {
		width: 750rpx;
		min-height: 100vh;
		padding: 20rpx;
		.title {
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #141418;
			padding-bottom: 20rpx;
		}
		.imgs {
			width: 100%;
			.img {
				width: 100%;
				padding: 10rpx 0;
			}
		}
	}
</style>
